#include "plum_api.h"


static plum_hal_gpio_cof_t gpioa1 = {
	.mode = PLUM_HAL_GPIO_MODE_COMMON,
	.config = {
		.com = PLUM_HAL_GPIO_MODE_OUT_PP,
	}
}; 

PLUM_HAL_BSP_EXPORT(PLUM_HAL_GPIO_ID(A,1),GPIOA1,&gpioa1);


static plum_hal_uart_cof_t uart1 = {
	.baudrate		= 115200,
	.databit		= PLUM_HAL_UART_DATABIT_8,
	.parity			= PLUM_HAL_UART_PARITY_NONE,
	.stopbit		= PLUM_HAL_UART_STOPBIT_1,
	.flowctrl		= PLUM_HAL_UART_FLOW_CTRL_NONE,
	.rxbuf_size		= 100,
	.rxpin_id		= PLUM_HAL_GPIO_ID(A,9),
	.txpin_id		= PLUM_HAL_GPIO_ID(A,10),
};

PLUM_HAL_BSP_EXPORT(PLUM_HAL_UART_ID(1),UART1,&uart1);
